{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-btn-group">
            <a href="{:url('user/recovery/index')}" class="layui-btn"><i class="fa fa-plus-circle"></i> 客户记录</a>
            <a href="{:url('user/recovery/track')}" class="layui-btn"><i class="fa fa-plus-circle"></i> 跟踪记录</a>
            <a href="{:url('user/recovery/remind')}" class="layui-btn"><i class="fa fa-plus-circle"></i> 提醒记录</a>
            <a href="{:url('user/recovery/order')}" class="layui-btn"><i class="fa fa-plus-circle"></i> 订单记录</a>
        </div>
		<table class="layui-table layui-form">
			<thead>
				<tr>
                                        <th>{:user_config_totitle('intention','customer')}</th>
					<th>客户名称</th>
					<th>手机号码</th>
					<th>区域</th>
					<th>地址</th>
					<th>{:user_config_totitle('type','customer')}</th>
                                        <th>{:user_config_totitle('come_from','customer')}</th>
					<th>创建时间</th>
                                        <th>更新时间</th>
					<th>{:user_config_totitle('status','customer')}</th>
                                        <th>操作人</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				{foreach name="list" item="v" empty="$empty"}
				<tr>
					<td>{:user_config_toval('intention',$v['intention'],'customer')}</td>
                                        <td>{$v.cname}</td>
					<td>{$v.mobile}</td>
                                        <td>{$v.province}/{$v.city}/{$v.area}</td>
                                        <td>{$v.address}</td>
                                        <td>{:user_config_toval('type',$v['type'],'customer')}</td>
                                        <td>{:user_config_toval('come_from',$v['come_from'],'customer')}</td>
					<td>{:time_trans($v['create_time'])}</td>
                                        <td>{:time_trans($v['update_time'])}</td>
                                        <td>{:user_config_toval('status',$v['status'],'customer')}</td>
                                        <td>{:get_user_realname($v['uid'])}</td>
					<td>
                                            <a href="{:url('user/recovery/regain', ['id' => $v.id])}" class="layui-btn layui-btn-xs layui-btn-normal ajax-action"><i class="fa fa-edit"></i> 恢复</a>
                                            <a href="{:url('user/recovery/del', ['id' => $v.id])}" class="layui-btn layui-btn-xs layui-btn-danger ajax-delete"><i class="fa fa-trash-o"></i> 彻底删除</a>
					</td>
				</tr>
				{/foreach}
			</tbody>
		</table>
		<div class="page">{$list->render()}</div>
	</div>
</div>
{/block}